package com.smart.admin.common.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.sql.Date;


/**
 * 品牌信息表
 */
@Data
public class BrandRequestParams {
    private Long brandId;
    /**
     * 品牌名称
     */
    @NotNull
    private String brandName;

    /**
     * 联系电话
     */
    @NotNull
    @Pattern(regexp = "^1[3-9][0-9]{9}", message = "联系电话格式错误")
    private String phone;

    /**
     * 品牌网络
     */
    @NotNull
    private String brandWeb;

    /**
     * 品牌logo URL
     */
    @NotNull
    private String brandLogo;

    /**
     * 品牌描述
     */
    private String brandDesc;

    /**
     * 品牌状态,0禁用,1启用
     */
    private Integer brandStatus;

    /**
     * 排序
     */
    private Integer brandOrder;

    /**
     * 最后修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifiedTime;

    /**
     * 1 国内平台  2 国外品牌  3 自有品牌
     */
    private Integer brandType;

    /**
     * 品牌所属企业
     */
    private String brandCompany;

    public static final String COL_BRAND_ID = "brand_id";

    public static final String COL_BRAND_NAME = "brand_name";

    public static final String COL_PHONE = "phone";

    public static final String COL_BRAND_WEB = "brand_web";

    public static final String COL_BRAND_LOGO = "brand_logo";

    public static final String COL_BRAND_DESC = "brand_desc";

    public static final String COL_BRAND_STATUS = "brand_status";

    public static final String COL_BRAND_ORDER = "brand_order";

    public static final String COL_MODIFIED_TIME = "modified_time";

    public static final String COL_BRAND_TYPE = "brand_type";

    public static final String COL_BRAND_COMPANY = "brand_company";
}